from urllib.request import urlopen

from http.client import  HTTPResponse

URL = 'http://www.bing.com'

response = urlopen(URL)
print(response.closed)

with response:
    print(type(response))
    print(response.status)
    print(response._method)
    print(response.read())
    print(response.geturl())

print(response.closed)


